﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Cms_ArticleClass:NFinal.Struct
    {
		public System.Int32? ID {get;set;}
		public System.String aClassName {get;set;}
		public System.String aIntroduction {get;set;}
		public System.Int32? aParentID {get;set;}
		public System.String aImageUrl {get;set;}
		public System.String aAdmHref {get;set;}
		public System.String aWebHref {get;set;}
		public System.DateTime? aCreatTime {get;set;}
		public System.Boolean? aArticleList {get;set;}
		public System.Int32? aOrderNum {get;set;}
		public System.Int32? aArticleCount {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"aClassName\":");
					tw.Write("\"");
					tw.Write(aClassName==null?"null":aClassName);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aIntroduction\":");
					tw.Write("\"");
					tw.Write(aIntroduction==null?"null":aIntroduction);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aParentID\":");
					tw.Write(aParentID==null?"null" : aParentID.ToString());
					tw.Write(",");
					tw.Write("\"aImageUrl\":");
					tw.Write("\"");
					tw.Write(aImageUrl==null?"null":aImageUrl);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aAdmHref\":");
					tw.Write("\"");
					tw.Write(aAdmHref==null?"null":aAdmHref);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aWebHref\":");
					tw.Write("\"");
					tw.Write(aWebHref==null?"null":aWebHref);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aCreatTime\":");
					tw.Write("\"");
					tw.Write(aCreatTime==null?"null":aCreatTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aArticleList\":");
					tw.Write(aArticleList==null?"null":((bool)aArticleList?"true":"false"));
					tw.Write(",");
					tw.Write("\"aOrderNum\":");
					tw.Write(aOrderNum==null?"null" : aOrderNum.ToString());
					tw.Write(",");
					tw.Write("\"aArticleCount\":");
					tw.Write(aArticleCount==null?"null" : aArticleCount.ToString());
			tw.Write("}");
		}
		#endregion
    }
}
